﻿using System;
using System.Collections.Generic;
using IDAL.RF.JointingCheck;
using Model.RF.JointingCheck;

namespace BLL.RF.JointingCheck
{
    public class QCPackCheck : BaseService<QCPackCheckInfo>
    {
        private static readonly IQCPackCheck dal = DALFactory.DataAccess.CreateQCPackCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<QCPackCheckInfo> GetQCPackChecksbySN(string productSN)
        {
            return dal.GetQCPackChecksbySN(productSN);
        }

        public IList<QCPackCheckInfo> GetQCPackChecksbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetQCPackChecksbyDT(starttime, stoptime);
        }

        public IList<QCPackCheckInfo> GetQCPackChecksbyPIDDT(string productTypeID, DateTime starttime, DateTime stoptime)
        {
            return dal.GetQCPackChecksbyPIDDT(productTypeID, starttime, stoptime);
        }
    }
}
